<template>
  <div id="app">
    <div class="app-main">
      <router-view />
    </div>
  </div>
</template>

<script>
export default {
  name: "app",
  data() {
    return {};
  },
  mounted() {
    // 返回首页的全局方法
    window["backIndex"] = () => {
      this.$router.push({ path: "/" });
    };
  }
};
</script>

<style lang="scss">
#app {
  width: 100vw;
  height: 100vh;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  flex-direction: column;

  .app-main {
    width: 100vw;
    flex: 1;
    background: #fff;
  }
}

html,
body {
  width: 100%;
  margin: 0;
}

/* 搜索框去除边框 */
input,
button,
select {
  border: 0px;
  /* 设置背景颜色为透明 */
  background-color: transparent;
  /* 去掉外轮廓 */
  outline: none;
}

/* 图片的空白间隙 */
img {
  vertical-align: middle;
}

.van-tabbar {
  height: 66px !important;
}

.van-tabbar--fixed {
  height: 66px !important;
}

.van-nav-bar .van-icon {
  color: rgba(0, 0, 0, 0.9) !important;
}

.el-message-box {
  width: 300px !important;
}

.el-table .el-button + .el-button{
  margin-left: 5px !important;
}
</style>
